<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>

<body class="oneColElsCtr">
<hr/>


    
    <p align="center"><tt><em><strong>Leave History Information	</strong></em></tt></p>
	
        
    <table class="table-striped table-hover">
      <tr  align="center">
        <td>RefNo</td> 
        <td>Id</td>
         <td >LeaveStart</td> 
        <td >LeaveEnd</td>      
        <td >Status</td>    
        <td >Type</td>       
        <td >Reason</td>      
        <td >WorkAssigned</td>       
          <td >Approver</td>
          
        
      </tr>
      <c:forEach items="${leavelist}"    var="leave_record">
      <tr align="center">
      <form:form action="details" method="POST" commandName="Record">
          <td ><form:input  readonly="true" path="refNo" value="${leave_record.refNo}" style="width: 50px"/></td>	
          <td ><form:input readonly="true" path="id" value="${leave_record.id}" style="width: 50px"/></td>
           <td><form:input readonly="true" path="leaveStart" value="${leave_record.leaveStart}" style="width: 100px"/></td>
              <td><form:input readonly="true" path="leaveEnd" value="${leave_record.leaveEnd}" style="width: 100px"/></td>
                   <td><form:input readonly="true" path="leaveStatus" value="${leave_record.leaveStatus}" style="width: 80px"/></td>
                  <td><form:input readonly="true" path="leaveType" value="${leave_record.leaveType}" style="width: 80px"/></td>
                 <td><form:input readonly="true" path="additionalReason" value="${leave_record.additionalReason}" style="width: 80px"/></td>
                 <td><form:input readonly="true" path="workDissemination" value="${leave_record.workDissemination}" style="width: 80px"/></td>
                  <td><form:input readonly="true" path="approvedBy"  value="${leave_record.approvedBy}" style="width: 80px"/></td>
            <td><input class="btn btn-info" type="submit" name="action" value="Details" ></td>
</form:form>
      </tr>
                          </c:forEach> 
      
  </table>
  


</body>
</html>